Nondeterminism in Constructive Z

نویسندگان

  • Hassan Haghighi
  • Seyed-Hassan Mirian-Hosseinabadi
چکیده

The abstraction inherent in most specifications and the need to specify nondeterministic programs are two well-known sources of nondeterminism in formal specifications. In this paper, we present a formalism, including the notion of multi-schema and a new set of schema calculus operations, by which one can specify bounded, unbounded, loose, strict, erratic, angelic, demonic, singular, and plural nondeterminism in the CZ formal specification language. CZ is a Z-style notation that is based upon a constructive set theory, namely, CZ set theory. While our definitions can be modified slightly to be used in the Z notation, we have chosen CZ, instead of Z, because of its constructive basis that allows us to investigate the notion of nondeterminism from the formal program development point of view. More precisely, we formally construct functional programs from CZ specifications and then probe the effects of the initially specified nondeterminism on final programs. Our investigation will show that without specifying nondeterminism explicitly, the effects of the nondeterminism involved in initial specifications will not be preserved in final programs. On the other hand, we will interpret all the nondeterministic constructs of the formalism, proposed by this paper, in CZ and then prove that using this formalism for writing nondeterministic specifications leads to programs that preserve the initially specified modalities of nondeterminism. We will show the practicability of the new formalism via several examples.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Formal Development of Two Player Games: A Constructive Approach

In a two player game, the choices of our player can be modeled by angelic nondeterminism and those of our opponent by demonic nondeterminism. In this paper, we introduce some notations and semantics to MartinLöf's theory of types which facilitate the use of angelic and demonic interpretations of nondeterminism in type theoretical specifications. Using the proposed, nondeterministic constructs, ...

متن کامل

Nondeterminism in Formal Development of Concurrent Programs: A Constructive Approach

It is now widely accepted that programming concurrent software is a complex, error-prone task. Therefore it is useful to specify, develop, and verify concurrent programs using formal methods. In our continuing work, we try to develop a constructive framework for extracting concurrent programs from their formal specifications. In this framework, we use CZ specification language and rely on a tra...

متن کامل

Making Nondeterminism Explicit in Z

Specification of system requirements is often involved with ambiguity and nondeterminism. Formal methods tend to mitigate ambiguity but nondeterminism remains as an inherent part of specification. This is due to the abstraction from real world details that causes a formal specification to define several results as a correct solution to a problem. Hence, a support for nondeterminism should be fo...

متن کامل

Combining CSP and Object-Z: Finite or Infinite Trace Semantics?

In this paper we compare and contrast two alternative semantics as a means of combining CSP with Object-Z. The purpose of this combination is to more effectively specify complex, concurrent systems: while CSP is ideal for modelling systems of concurrent processes, Object-Z is more suitable for modelling the data structures often needed to model the processes themselves. The first semantics, the...

متن کامل

APPROXIMATE FIXED POINT IN FUZZY NORMED SPACES FOR NONLINEAR MAPS

We de ne approximate xed point in fuzzy norm spaces and prove the existence theorems, we also consider approximate pair constructive map- ping and show its relation with approximate fuzzy xed point.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Fundam. Inform.

دوره 88  شماره 

صفحات  -

تاریخ انتشار 2008